<html>
<head><meta charset="utf-8"><title>Problem with UTF-8 and the Windows console · t-compiler/windows · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/index.html">t-compiler/windows</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Problem.20with.20UTF-8.20and.20the.20Windows.20console.html">Problem with UTF-8 and the Windows console</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233436677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242869-t-compiler/windows/topic/Problem%20with%20UTF-8%20and%20the%20Windows%20console/near/233436677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Count Count <a href="https://rust-lang.github.io/zulip_archive/stream/242869-t-compiler/windows/topic/Problem.20with.20UTF-8.20and.20the.20Windows.20console.html#233436677">(Apr 07 2021 at 06:10)</a>:</h4>
<p>Hi! Newbie here. I have written my first pull request and would love to get some feedback on it, see <a href="https://github.com/rust-lang/rust/pull/83342">https://github.com/rust-lang/rust/pull/83342</a></p>
<p>The problem is that writes of just an incomplete multi-byte UTF-8 codepoint to stdout attached to a Windows console return an error even though further bytes could complete the codepoint. This is currently a rare occurence due to line buffering but will become more pronounced once stdout buffering can be turned off.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>